package com.zsc.newbuds.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 捐赠记录实体类
 * @author D
 */
public class Record implements Serializable {

    private Integer recordId;
    private String donor;
    private String startAddress;
    private String jsonAddress;
    private String donationArea;
    private String operator;
    private String donationName;
    private String state;
    private Integer userId;
    private Integer recycleId;
    private String joinTime;
    private String updateTime;

    public Integer getRecycleId() {
        return recycleId;
    }

    public void setRecycleId(Integer recycleId) {
        this.recycleId = recycleId;
    }

    public String getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(String joinTime) {
        this.joinTime = joinTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public String getDonor() {
        return donor;
    }

    public void setDonor(String donor) {
        this.donor = donor;
    }

    public String getStartAddress() {
        return startAddress;
    }

    public void setStartAddress(String startAddress) {
        this.startAddress = startAddress;
    }

    public String getJsonAddress() {
        return jsonAddress;
    }

    public void setJsonAddress(String jsonAddress) {
        this.jsonAddress = jsonAddress;
    }

    public String getDonationArea() {
        return donationArea;
    }

    public void setDonationArea(String donationArea) {
        this.donationArea = donationArea;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getDonationName() {
        return donationName;
    }

    public void setDonationName(String donationName) {
        this.donationName = donationName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Record{" +
                "recordId=" + recordId +
                ", donor='" + donor + '\'' +
                ", startAddress='" + startAddress + '\'' +
                ", jsonAddress='" + jsonAddress + '\'' +
                ", donationArea='" + donationArea + '\'' +
                ", operator='" + operator + '\'' +
                ", donationName='" + donationName + '\'' +
                ", state='" + state + '\'' +
                ", userId=" + userId +
                ", recycleId=" + recycleId +
                ", joinTime=" + joinTime +
                ", updateTime=" + updateTime +
                '}';
    }

    /**
     * 转部分属性为json
     * @return
     */
    public String toJson(){
        return "{"+
                "\"recordId\":"+recordId+
                ",\"donor\":"+"\""+donor+"\""+
                ",\"donationName\":"+"\""+donationName+"\""+
                ",\"state\":"+"\""+state+"\""+
                "}";
    }
}
